/**
 * @file
 * @author dousha
 * @date 2020
 */

#ifndef USB_H
#define USB_H

#include <stdint.h>

extern void usb_init();

extern uint8_t usb_read_byte();

extern void usb_write_byte(uint8_t);

extern void usb_write_bytes(uint8_t *, uint32_t);

extern void usb_on_byte_arrive(void (*)(uint8_t));

extern void usb_on_byte_depart(void (*)(uint8_t));

#endif
